package com.michau.testitas.common.model.user;

import com.michau.testitas.common.model.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * User: michau
 * Date: 1/9/13
 * Time: 12:01 AM
 */
@Entity
@Table(name="testit_user")
public class User extends BaseEntity {

    @Column(name="login", nullable = false, unique = true)
    private String login;

    @Column(name="password", nullable = false)
    private String password;

    @Column(name="date_created", nullable = false)
    private Date dateCreated;

    @Column(name="firstname")
    private String firstname;

    @Column(name="lastname")
    private String lastname;

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getDateCreated() {
        return dateCreated;
    }

    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getLastname() {
        return lastname;
    }

    public void setLastname(String lastname) {
        this.lastname = lastname;
    }
}
